Repository navigation
[Other] setup: ask before Inkling 2's small-card settings, off by default - #249
Open
okada-shogo wants to merge 3 commits into
Open
okada-shogo wants to merge 3 commits into
okada-shogo wants to merge 3 commits into
Conversation
On a card that holds only part of the experts, --expert-swaps 0 keeps the experts on the card as they were loaded. Fewer of a token's experts are then found in VRAM and the CPU computes more of them: alone it wrote 16-23% slower after a 302-token prompt on an RTX 4060 Ti 16 GB, a Quadro RTX 4000 8 GB and an RTX 2070 Super 8 GB, and about the same after 8,192. Setup now gives --attn-requant q5_0 --loop-bf16 --tail-skip 4 and leaves expert swaps at the engine's default. The small-card bundle is VecSzn's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a card that does not hold every expert, setup added --attn-requant q5_0
--loop-bf16 --tail-skip 4 to Inkling 2 Mini's run config without asking.
They lower answer quality: the first two round more coarsely, and
--tail-skip 4 leaves out 9-27% of a token's expert picks on 8 GB cards.
With them the same most likely token comes at 94.3-95.0% of the steps,
against 98.2-99.0% for a second run without them.
Setup now asks ("Use the faster small-card settings?", default no) and
writes them only on yes. --inkling-small-card on|off answers without
asking; --yes takes off. The answer is kept in the run config
("small_card") and a later setup run uses it. A config of an older setup
has no answer, so that run asks again. A card that holds every expert is
not asked, as before.
The small-card bundle is VecSzn's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The setup paragraph quoted the top-1 agreement measured with all four small-card settings (--expert-swaps 0 included). With the three that setup now offers: 94.1-97.0% on an RTX 2070 Super 8 GB and a Quadro RTX 4000 8 GB (IQ4_NL and UD-Q2_K_XL), against 98.3-99.3% for a second default run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
okada-shogo
added a commit
to okada-shogo/PolyStrata
that referenced
this pull request
Nov 23, 2026
…-card settings, off by default Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #248 ("[Other] setup: drop --expert-swaps 0 from Inkling 2's small-card settings").
Review only the last two commits.
Problem and result
On a card that does not hold every expert, setup adds
--attn-requant q5_0 --loop-bf16 --tail-skip 4(VecSzn'ssmall-card settings) to Inkling 2 Mini's run config without asking, and there is no option to leave them out. They
lower answer quality:
--attn-requant q5_0and--loop-bf16round more coarsely.--tail-skip 4skips computation: a token's experts ranked 5th-8th that are not on the card are left out.UD-Q2_K_XL, numbers in [Other] setup: drop --expert-swaps 0 from Inkling 2's small-card settings #248). A second run without them gives 98.3-99.3% (the noise floor).
Now setup asks, and the default is no:
--inkling-small-card on|offanswers without asking.--yestakesoff."small_card": "on"|"off"). A later setup run uses it and does not ask.This makes small cards slower by default. Decode tok/s (tokens written per second), median of 3 runs, higher is
better. "main (settings on)" is with the three settings of #248; "this PR alone (off)" is the new default, without
them (main d1f711e's engine, runs and logs in #248). Change is off against on.
Decode tok/s after a 302-token prompt:
Decode tok/s after an 8,192-token prompt:
From the docs, RTX 4070 Laptop 8 GB, UD-Q3_K_XL, with main's four settings (before #248) against none, not re-measured here,
decode tok/s:
Related discussion
none (follow-up to the small-card settings in 99cf818, #248, and the flag study in #247)
Approach
ask()withy/n, the default is therecommended answer, an explicit flag wins, and the answer is read back from the model's earlier run config
(
poly_saved_small_card, likepoly_saved_kv/poly_saved_conv)."small_card"is a setup key (SETUP_KEYS): it is written again on every run and dropped when the question doesnot apply.
"small_card". That run asks again (default no)instead of keeping them, because nobody chose them.
--inkling-small-cardfor another family is reported in setup's "not used with ..." line.small_card_args. Other families' configs are unchanged.Validation
Passed:
cd terminal && ~/polystrata/.venv/bin/python -m unittest tools.test_setup_inkling(13 tests, OK). New: asked +yes, asked + no, asked + Enter,
--yes(not asked, off),--inkling-small-card on|off(not asked), a re-runkeeps on and off (asked mode and
--yes), the flag changes a kept answer, an older config without the key isasked again, a card that holds every expert is not asked, another family reports the flag as not used.
cd terminal && ~/polystrata/.venv/bin/python -m unittest $(ls tools/test_setup*.py | sed 's#/#.#; s#\.py$##')(90 modules): 1,365 tests, OK (skipped=1). Linux, Python 3.10, e8cce13 (the code; 7c31211 after it changes
only docs).
python3 tools/check --only docs, 7c31211: passed (6 checks).Failed:
none observed
Not run:
START-HERE.bat) and the app's install path; they call the samepoly_setup(), but were not run.Limits
start.
#setups-four-settings-one-at-a-time), which comes with [Docs] Inkling 2 Mini: measure setup's four small-card settings one at a time #247.If this merges first, the anchor is dead until that lands. [Docs] Inkling 2 Mini: measure setup's four small-card settings one at a time #247's sentence "setup adds all four by itself,
without asking" needs a one-line update after this PR.
docs/models/inkling.mdbut does not print the numbers.Credits: the small-card settings are VecSzn's.
🤖 Generated with Claude Code